package com.tiancheng.trade.order.enums;

import com.tiancheng.trade.commom.core.enums.BaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 订单类型枚举
 *
 * @author likailun
 * @date 2022/12/20
 */
@Getter
@AllArgsConstructor
public enum ReportChannelEnum implements BaseEnum<String> {

	gdt_vid("gdt_vid", "微信广告click_id"),
	qz_gdt("qz_gdt", "腾讯广告click_id"),
	channel_track_key("_channel_track_key", "神策广告系列utm");

	private String code;
	private String desc;

	public static String getDesc(String code) {
		ReportChannelEnum[] businessModeEnums = values();
		for (ReportChannelEnum statusEnum : businessModeEnums) {
			if (statusEnum.code().equals(code)) {
				return statusEnum.desc();
			}
		}
		return null;
	}

	public String code() {
		return this.code;
	}

	public String desc() {
		return this.desc;
	}
}
